Skip to content

Log findings: quiet ones resolve on their own - #439

Merged
nambok merged 1 commit into
mainfrom
logs/quiet-findings-resolve
Nov 3, 2026
Merged

nambok merged 1 commit into
mainfrom
logs/quiet-findings-resolve

Conversation

@nambok

@nambok nambok commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

A log finding that stopped appearing stayed open for a fixed week, so a burst that ended days ago still showed as Critical. Open findings, acknowledged or not, now resolve after a quiet period that fits how the error behaves.

Changes

  • lifecycle.quiet_days_for: 3 days for a burst that stopped (one run of consecutive days, or no history); twice the longest silence for an error that keeps coming back (gaps between days with lines, and from a resolve to its reopen); clamped to 1 to 14 days. Rule written in the module notes.
  • Resolving records resolved_reason ("Resolved: no new lines for N days") and quiet_days; sightings and new findings write quiet_days; open findings not seen in a run get it stamped when it changes.
  • Acknowledged findings are pending and resolve the same way. Seen again still reopens.
  • API rows add quiet_days, resolves_at (open only), resolved_at, resolved_reason.

Verification

  • New lambda tests: acknowledged and quiet resolves with the reason; a burst waits the default; an error that keeps coming back needs a longer period; seen again lengthens it. All lambda tests pass.
  • New common test for resolves_at; common log_findings and gateway log_findings tests pass; clippy and fmt clean.

…ts the error

An open finding, acknowledged or not, now resolves once it has gone without a
matching line for its own quiet period instead of a fixed week: 3 days for a
burst that stopped, twice the longest silence for an error that keeps coming
back (between days with lines, and from a resolve to its reopen), from 1 to 14
days. The resolve records why ("Resolved: no new lines for N days"), open
findings carry their quiet period, and the API says when an open finding
resolves unless seen again.
@nambok
nambok merged commit 7bc8d3a into main Nov 3, 2026
10 checks passed
@nambok
nambok deleted the logs/quiet-findings-resolve branch November 3, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant